package tableGeorg;

public class Min extends Value {

	double first = 0, second = 0, result = 0;

	public Min(Value a, Value b) {
		if (a == null) {
			a = new NullValue();
		}
		if (b == null) {
			b = new NullValue();
		}
		first = a.evaluate();
		second = b.evaluate();
		if (first > second)
			result = second;
		else
			result = first;
	}

	public double evaluate() {
		return result;
	}
}